-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
expiry: prevent expired tasks from retrying automatically #6353
Conversation
@@ -2150,3 +2150,51 @@ async def test_trigger_unqueued(flow, scheduler, start): | |||
assert not schd.pool.task_queue_mgr.force_released, ( | |||
"Triggering an unqueued task should not affect the force_released list" | |||
) | |||
|
|||
|
|||
@pytest.mark.parametrize('expire_type', ['clock-expire', 'manual']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Manual expiry wasn't broken, but I included it in this test for completeness.
547da8f
to
ece46bc
Compare
@@ -2239,6 +2239,7 @@ def clock_expire_tasks(self): | |||
# check if this task is clock expired | |||
and itask.clock_expire() | |||
): | |||
self.task_queue_mgr.remove_task(itask) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Damn, love an easy fix!
Technically this should have a change log entry (although I doubt many have run into the bug.) |
on:testspass - will push button |
Tests passed, pressing the button. |
Closes #6284
Check List
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
(andconda-environment.yml
if present).?.?.x
branch.